<?php

/* * *********************************************************** */
/* * ******************** controller inicio ******************* */
/* * ************ Desenvolvido por Antônio Ezequiel ************** */
/* * *********************************************************** */

//verifica se o usuario esta logado
if (!verificaUsuarioLogado())
    header("location: " . $configurator["siteadmin"] . "/login.A&V");
else {
    //verifica se a sessão expirou
    if (verificarExpiracaoSessao())
        header("location: " . $configurator["siteadmin"] . '/login.A&V');
    $smarty->assign("usuario", $_SESSION['usuario_logado']['nome']);
    $smarty->display("inicio.tpl");
}
?>
